<?php
class Codegenerator_View_Helper_TableSelect extends Zend_View_Helper_Abstract
{
	public function tableSelect(array $tables, Zend_View_Abstract $view)
	{
		$select = array();
		foreach ($tables as $table) {
			$url=$view->url(array(	'module'=>'codegenerator',
									'controller'=>'form',
									'action'=>'create',
									'table'=>$table
									));
			//$select[$url]=$table;
			$select[$table]=$table;
		}

		return $view->formSelect('table',null,null,$select);
	}
}
